/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.vce.election.domain;

import com.vce.Persistent;
import com.vce.Year;

/**
 *
 * @author Ggutierrez
 */
public class ElectionType implements Persistent{
    private Long id;
    private Year year;
    private String description;
    private String winnerMethod; // Media mayor, conteo neto
    private boolean current;

    public ElectionType() {
    }
    
    public ElectionType(Year year, String description, boolean current) {
        this.year = year;
        this.description = description;
        this.current = current;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Year getYear() {
        return year;
    }

    public void setYear(Year year) {
        this.year = year;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getWinnerMethod() {
        return winnerMethod;
    }

    public void setWinnerMethod(String winnerMethod) {
        this.winnerMethod = winnerMethod;
    }

    public boolean isCurrent() {
        return current;
    }

    public void setCurrent(boolean current) {
        this.current = current;
    }
}
